<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>

					<div class="sidebar-shortcuts" id="sidebar-shortcuts">
						<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
							<button class="btn btn-success">
								<i class="icon-signal"></i>
							</button>

							<button class="btn btn-info">
								<i class="icon-pencil"></i>
							</button>

							<button class="btn btn-warning">
								<i class="icon-group"></i>
							</button>

							<button class="btn btn-danger">
								<i class="icon-cogs"></i>
							</button>
						</div>

						<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
							<span class="btn btn-success"></span>

							<span class="btn btn-info"></span>

							<span class="btn btn-warning"></span>

							<span class="btn btn-danger"></span>
						</div>
					</div><!-- #sidebar-shortcuts -->
                       
						
					<ul class="nav nav-list">
					
						<li <?php if($this->getCurrentController() == 'basicinfo') echo 'class="open"';?>>
							<a href="<?php echo Yii::app()->createUrl('basicinfo/index');?>" class="dropdown-toggle">
								<i class="icon-edit"></i>
								<span class="menu-text"> 基本资料 </span>

								<b class="arrow icon-angle-down"></b>
							</a>
							<ul class="submenu" <?php if($this->getCurrentController() == 'basicinfo') echo 'style="display:block;"';?>>
							  <?php
							    $showIndex = '';
								$showAdddata = '';
							   if(Yii::app()->user->rights == '3' ){
								if($this->getCurrentAction() == 'index' && $this->getCurrentController() == 'basicinfo') 
									$showIndex = 'class="active"';   
								if($this->getCurrentAction() == 'adddata' && $this->getCurrentController() == 'basicinfo') 
									$showAdddata = 'class="active"'; 
								echo '   
								<li '.$showIndex.'>
									<a href="'.Yii::app()->createUrl('basicinfo/index').'">
										<i class="icon-double-angle-right"></i>
										所有学生
									</a>
								</li>
								<li '.$showAdddata.'>
									<a href="'.Yii::app()->createUrl('basicinfo/adddata').'">
										<i class="icon-double-angle-right"></i>
										添加字段
									</a>
							   </li>';
							   }
							   ?>
                                <li <?php if($this->getCurrentAction() == 'checkstuinfo' && $this->getCurrentController() == 'basicinfo') echo 'class="active"'; ?>>
									<a href="<?php echo Yii::app()->createUrl('basicinfo/checkstuinfo');?>">
										<i class="icon-double-angle-right"></i>
										审核学生资料
									</a>
								</li>
								
							</ul>
						</li>
						 <li <?php if($this->getCurrentController() == 'scholarship') echo 'class="open"';?>>
							<a href="<?php echo Yii::app()->createUrl('scholarship/index');?>" class="dropdown-toggle">
								<i class="icon-tasks"></i>
								<span class="menu-text"> 综合奖学金 </span>

								<b class="arrow icon-angle-down"></b>
							</a>
							<ul class="submenu" <?php if($this->getCurrentController() == 'scholarship') echo 'style="display:block;"';?>>
							
								<li <?php if($this->getCurrentAction() == 'index' && $this->getCurrentController() == 'scholarship') echo 'class="active"'; ?>>
									<a href="<?php echo Yii::app()->createUrl('scholarship/index');?>">
										<i class="icon-double-angle-right"></i>
										审核综合奖学金申请
									</a>
								</li>
                             <?php
							    $showPro = '';
								$showAddcate ='';
							  if(Yii::app()->user->rights == '3'){
								  if($this->getCurrentAction() == 'changepro' && $this->getCurrentController() == 'scholarship')
									  $showPro = 'class="active"';
								  if($this->getCurrentAction() == 'addcate' && $this->getCurrentController() == 'scholarship')
									  $showAddcate = 'class="active"';
								  
							    echo '	  
								<li '.$showPro.'>
									<a href="'.Yii::app()->createUrl('scholarship/changepro').'">
										<i class="icon-double-angle-right"></i>
										修改比例
									</a>
								</li>
								<li '.$showAddcate.'>
									<a href="'.Yii::app()->createUrl('scholarship/addcate').'">
										<i class="icon-double-angle-right"></i>
										添加评测标准
									</a>
							  </li>';
							  }?>
							<li <?php if($this->getCurrentAction() == 'report' && $this->getCurrentController() == 'scholarship') echo 'class="active"'; ?>>
									<a href="<?php echo Yii::app()->createUrl('scholarship/report');?>">
										<i class="icon-double-angle-right"></i>
										综合奖学金报表
									</a>
								</li>
							</ul>
						</li>
					
					     	
				        <li <?php if($this->getCurrentController() == 'gsp') echo 'class="open"';?>>
							<a href="<?php echo Yii::app()->createUrl('gsp/index');?>" class="dropdown-toggle">
								<i class="icon-list"></i>
								<span class="menu-text"> GSP及综合素质 </span>

								<b class="arrow icon-angle-down"></b>
							</a>
							<ul class="submenu" <?php if($this->getCurrentController() == 'gsp') echo 'style="display:block;"';?>>
							<?php
							   $showAddgsp = '';
							   $showAddintegration ='';
							  if(Yii::app()->user->rights == '3'){
								  if($this->getCurrentAction() == 'addgsp' && $this->getCurrentController() == 'gsp') 
									  $showAddgsp = 'class="active"';
								   if($this->getCurrentAction() == 'addintegration' && $this->getCurrentController() == 'gsp') 
									  $showAddintegration = 'class="active"';
								echo '
								<li '.$showAddgsp.'>
									<a href="'.Yii::app()->createUrl('gsp/addgsp').'">
										<i class="icon-double-angle-right"></i>
										添加GSP
									</a>
								</li>

								<li '.$showAddintegration.'>
									<a href="'.Yii::app()->createUrl('gsp/addintegration').'">
										<i class="icon-double-angle-right"></i>
										添加综合素质
									</a>
							  </li>';
							  }
							  ?>
								<li <?php if($this->getCurrentAction() == 'checkgsp' && $this->getCurrentController() == 'gsp') echo 'class="active"'; ?>>
									<a href="<?php echo Yii::app()->createUrl('gsp/checkgsp');?>">
										<i class="icon-double-angle-right"></i>
										审核GSP
									</a>
								</li>
								<li <?php if($this->getCurrentAction() == 'checkinte' && $this->getCurrentController() == 'gsp') echo 'class="active"'; ?>>
									<a href="<?php echo Yii::app()->createUrl('gsp/checkinte');?>">
										<i class="icon-double-angle-right"></i>
										审核综合素质
									</a>
								</li>
								<?php 
								// 修改为 操作员(辅导员)也可以导出报表
								 $showIntestulist = '';
								 $showGspstulist = '';
								if(Yii::app()->user->rights >= 2 ){
									 if($this->getCurrentAction() == 'intestulist' && $this->getCurrentController() == 'gsp') 
									  $showIntestulist = 'class="active"';
								   if($this->getCurrentAction() == 'gspstulist' && $this->getCurrentController() == 'gsp') 
									  $showGspstulist = 'class="active"';
								echo '<li '.$showIntestulist.'>
									<a href="'.Yii::app()->createUrl('gsp/intestulist').'">
										<i class="icon-double-angle-right"></i>
										综合素质报表
									</a>
								</li>
								<li '.$showGspstulist.'>
									<a href="'.Yii::app()->createUrl('gsp/gspstulist').'">
										<i class="icon-double-angle-right"></i>
										GSP报表
									</a>
								</li>';
								}?>
							</ul>
						</li>
						<li <?php if($this->getCurrentController() == 'activity') echo 'class="open"';?>>
							<a href="<?php echo Yii::app()->createUrl('activity/index');?>" class="dropdown-toggle">
								<i class="icon-desktop"></i>
								<span class="menu-text"> 学生报名 </span>

								<b class="arrow icon-angle-down"></b>
							</a>
							<ul class="submenu" <?php if($this->getCurrentController() == 'activity') echo 'style="display:block;"';?>>
							 <?php
							   $showActivityIndex = '';
							   $showAddActivity = '';
							  if(Yii::app()->user->rights == '3'){
								   if($this->getCurrentAction() == 'index' && $this->getCurrentController() == 'activity') 
									  $showActivityIndex = 'class="active"';
								   if($this->getCurrentAction() == 'addactivity' && $this->getCurrentController() == 'activity') 
									  $showAddActivity = 'class="active"';
								 echo '
								<li '.$showActivityIndex.'>
									<a href="'.Yii::app()->createUrl('activity/index').'">
										<i class="icon-double-angle-right"></i>
									    已添加的学生报名
									</a>
								</li>
								<li '.$showAddActivity.'>
									<a href="'.Yii::app()->createUrl('activity/addactivity').'">
										<i class="icon-double-angle-right"></i>
										添加学生报名
									</a>
								</li>';
							  }?>
                                <li <?php if($this->getCurrentAction() == 'checkactivity' && $this->getCurrentController() == 'activity') echo 'class="active"'; ?>>
									<a href="<?php echo Yii::app()->createUrl('activity/checkactivity');?>">
										<i class="icon-double-angle-right"></i>
									    审核学生报名
									</a>
								</li>
								
							</ul>
						</li>
					<li <?php if($this->getCurrentController() == 'survey') echo 'class="open"';?>>
							<a href="<?php echo Yii::app()->createUrl('survey/index');?>" class="dropdown-toggle">
								<i class="icon-file"></i>
								<span class="menu-text"> 调查问卷 </span>

								<b class="arrow icon-angle-down"></b>
							</a>
							<ul class="submenu" <?php if($this->getCurrentController() == 'survey') echo 'style="display:block;"';?>>
								<li <?php if($this->getCurrentAction() == 'index' && $this->getCurrentController() == 'survey') echo 'class="active"'; ?>>
									<a href="<?php echo Yii::app()->createUrl('survey/index');?>">
										<i class="icon-double-angle-right"></i>
									    所有调查问卷
									</a>
								</li>
                              <?php
							  $showNewsurvey = '';
							    if(Yii::app()->user->rights == '3'){
								   if($this->getCurrentAction() == 'newsurvey' && $this->getCurrentController() == 'survey') 
									  $showNewsurvey = 'class="active"';
							    echo '
								<li '.$showNewsurvey.' >
									<a href="'.Yii::app()->createUrl('survey/newsurvey').'">
										<i class="icon-double-angle-right"></i>
										添加调查问卷
									</a>
								</li>';
								}
								?>
							</ul>
						</li>
						<?php
						     $isOpen = "";
							 $show ="";
							 $showAdminaccountsIndex = '';
							 $showAdminaccountsAdddata = '';
							 $showAdminaccountsAddperformance = '';
						     if($this->getCurrentController() == 'adminaccounts'){
                                      $isOpen = 'class="open"';
									  $show = 'style="display:block;"';
							 }
							  if($this->getCurrentAction() == 'index' && $this->getCurrentController() == 'adminaccounts') 
									  $showAdminaccountsIndex = 'class="active"';
							   if($this->getCurrentAction() == 'adddata' && $this->getCurrentController() == 'adminaccounts') 
									  $showAdminaccountsAdddata = 'class="active"';
                               if($this->getCurrentAction() == 'addperformance' && $this->getCurrentController() == 'adminaccounts') 
									  $showAdminaccountsAddperformance = 'class="active"';								  
					     	 if(Yii::app()->user->rights==3)
							  echo
								'<li '.$isOpen.'>
									<a href="'.Yii::app()->createUrl("adminacounts/index").'" class="dropdown-toggle">
										<i class="icon-male"></i>
										<span class="menu-text"> 用户管理 </span>
										<b class="arrow icon-angle-down"></b>
									</a>
							   <ul class="submenu" '.$show.'>
								<li '.$showAdminaccountsIndex.'>
									<a href="'.Yii::app()->createUrl('adminaccounts/index').'">
										<i class="icon-double-angle-right"></i>
										所有学生
									</a>
								</li>
								
								<li '.$showAdminaccountsIndex.'>
									<a href="'.Yii::app()->createUrl('adminaccounts/addteachers').'">
										<i class="icon-double-angle-right"></i>
										添加教师用户
									</a>
								</li>
								
								<li '.$showAdminaccountsAdddata.'>
									<a href="'.Yii::app()->createUrl('adminaccounts/adddata').'">
										<i class="icon-double-angle-right"></i>
										数据导入
									</a>
								</li>

								<li '.$showAdminaccountsAddperformance.'>
									<a href="'.Yii::app()->createUrl('adminaccounts/addperformance').'">
										<i class="icon-double-angle-right"></i>
										成绩导入
									</a>
								</li>
							</ul>
									
								</li>
								<li class="'.$this->activateArray[4].'">
									<a href="'.Yii::app()->createUrl("backup/index").'">
										<i class="icon-home"></i>
										<span class="menu-text"> 备份及恢复 </span>
									</a>
								</li>';
						?>
						
					</ul><!-- /.nav-list -->

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>